package manage;
import dataPO.*;
import others.*;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.*;
public interface ManageInterface extends Remote {

	   // method for managing order 
	public  ArrayList<OrderPO>getOrder(String name)throws RemoteException;
	public OrderPO getOrder(String name,int id)throws RemoteException;
    public ResultMessage changeOrderState(OrderPO op,  OrderStateEnum state)throws RemoteException;
    
    
    // method for  customer
    public ArrayList<CustomerPO> getCustomer()throws RemoteException;
    public CustomerPO getCustomerPO(String name)throws RemoteException;
	public ResultMessage giveEquivalentCoupons(String name,EquivalentCouponsPO e,int n)throws RemoteException;
	public ResultMessage giveDiscountCoupons(String name,DiscountCouponsPO d,int n)throws RemoteException;
    
    //method for adjust book 
   
    public ArrayList<BookPO>  getBook()throws RemoteException;    
	public ResultMessage setBookInfo (String isbn,String title, String author,String press, double price , String publishingTime,String cat,int n)throws RemoteException;
    public ResultMessage addBook(int n, String a, String iString, String tString, String pString, double pri, String ptString,String catalog)throws RemoteException;
    public ResultMessage removeBook(String ISBN)throws RemoteException;

}
